home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 339 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: news.clark.net!not-for-mail
  2. From: gusty@clark.net (Harlan Messinger)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: What has C++ got?
  5. Date: 3 Jan 1996 21:57:29 GMT
  6. Organization: Clark Internet Services, Inc., Ellicott City, MD USA
  7. Message-ID: <4ceu49$g6c@clarknet.clark.net>
  8. References: <4bfdkd$qha@insosf1.netins.net> <tran0119.819779463@gold.tc.umn.edu> <4bsb4g$ai8@news1.sunbelt.net>
  9. NNTP-Posting-Host: explorer.clark.net
  10. Mime-Version: 1.0
  11. Content-Type: TEXT/PLAIN; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Newsreader: TIN [UNIX 1.3 950726BETA PL0]
  14.  
  15. dking@SunBelt.Net wrote:
  16. : In article <tran0119.819779463@gold.tc.umn.edu>,
  17. :    tran0119@gold.tc.umn.edu (Cuong Q Tran) wrote:
  18. : >jdevries@netins.net (Joel DeVries) writes:
  19. : >
  20. : >>Can somebody tell me what C++ can do or what C++ has that ordinary C
  21. : >>doesn't have?        Thanks
  22. : >
  23.  
  24. Besides the benefits cited by others, I think one of the most important
  25. advantages of C++ is that when you define appropriate objects that "own" 
  26. their own functions and their own member data, you no longer have to
  27. manage enormous function argument lists. 
  28.  
  29. No more "Oops, I guess I need to make a decision based on the person's
  30. employment date in this function. Damn! It's not in the argument list. Now
  31. I have to add it to the list in the definition, the declaration, AND in
  32. all the calling routines, AND make sure that all of the calling routines
  33. also already have access to employment date, or else I have to modify
  34. their argument lists as well!"  
  35.  
  36. Instead we have, "Oops, I guess I need ... employment date .... But since
  37. this is a member function of the employee object, I already have automatic
  38. access to it." 
  39.  
  40.